package com.gxa.utils;

/**
 * @author lch
 * @date 2024/3/25 15:37
 * @description
 **/
public enum  MessageCode {

    REQUEST_SUCCESS(0,"请求成功!"),

    PHONE_ERROR(5001,"非法手机号！"),

    CODE_EXPIRE(5002,"验证码失效"),
    TOKEN_NOT_EMPTY(50005,"token不能为空!"),
    TOKEN_ERROR(50006,"非法token!"),

    CODE_ERROR(500015,"验证码输入错误!");

    //提示信息
    private String msg;

    //响应的状态码
    private Integer code;

    private MessageCode(Integer code,String msg){
        this.msg=msg;
        this.code=code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
